package com.oop7.OldDriver;

public class Plane {

	private double flightAltitude;
	private int seat;

	public double getFlightAltitude() {
		return flightAltitude;
	}

	public void setFlightAltitude(double flightAltitude) {
		this.flightAltitude = flightAltitude;
	}

	public int getSeat() {
		return seat;
	}

	public void setSeat(int seat) {
		this.seat = seat;
	}

	public void takeoff() {
		System.out.println("飞机起飞");
	}

	public void landing() {
		System.out.println("飞机降落");
	}

	public Plane(double flightAltitude, int seat) {
		setSeat(seat);
		setFlightAltitude(flightAltitude);
	}

}
